/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cassys.delegates;

import cassys.dataaccess.DAOException;
import cassys.datatransferobjects.EvaluationDTO;
import cassys.datatransferobjects.EvaluationItemDTO;
import cassys.ejb.sessionbean.EvaluationBeanRemote;
import cassys.servicelocator.ServiceLocator;

/**
 *
 * @author Priyanka
 */
public class EvaluationDelegate {
    
    private EvaluationBeanRemote evalBean = null;

    public EvaluationDelegate() {
        
       evalBean= (EvaluationBeanRemote) ServiceLocator.getInstance().lookupEvaluationBean();
        
    }
    
    public void insertIndividualEvaluation(EvaluationDTO dto) throws DAOException
    {
        evalBean.insertEvaluation(dto);
    }
    
    public EvaluationDTO findEvalByAssess(String assessmentId) throws DAOException{
        return evalBean.findEvalByAssess(assessmentId);
    }
     
}
